
import 'mop_ext_wechat_handlers.dart';
import 'mop_ext_wechat_platform_interface.dart';

class MopExtWechat {

  /// 注册组件
  ///
  /// [wxAppId] 应用在微信开放平台注册的appId
  /// [universalLink] universalLink
  ///
  /// 返回初始化是否成功
  static Future<Map> registerComponent({
    required String wxAppId,
    required String universalLink,
  }) {
    return MopExtWechatPlatform.instance.registerComponent(
        wxAppId: wxAppId,
        universalLink: universalLink);
  }
  /// 注册事件处理器
  static void registerHandlers(MopExtWechatHandlers handlers) {
    MopExtWechatPlatform.instance.handlers = handlers;
  }
}
